package qingke.pojo;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="lable")
public class Lable {

	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "name")
	private String name;
	
	@OneToMany
	@JoinColumn(name = "lable_id")
	private Set<AddLable> addLable;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<AddLable> getAddLable() {
		return addLable;
	}

	public void setAddLable(Set<AddLable> addLable) {
		this.addLable = addLable;
	}

	@Override
	public String toString() {
		return "Lable [id=" + id + ", name=" + name + "]";
	}
	
	
}
